package com.sunxiansheng.designPattern.factoryandstragy.handler;

import com.sunxiansheng.designPattern.factoryandstragy.PayChannelEnum;
import com.sunxiansheng.designPattern.factoryandstragy.PayHandler;
import org.springframework.stereotype.Component;

/**
 * Description: 支付宝支付策略
 * @Author sun
 * @Create 2024/7/22 10:51
 * @Version 1.0
 */
@Component
public class ZfbPayHandler implements PayHandler {

    /**
     * 标识自己的类型
     * @return
     */
    @Override
    public PayChannelEnum getChannel() {
        return PayChannelEnum.ZFB_PAY;
    }

    @Override
    public void dealPay() {
        System.out.println("支付宝支付策略");
    }

}